package io.github.iogogogo.commons.exception;

import lombok.Getter;

/**
 * Created by tao.zeng on 2024/11/17.
 */
@Getter
public class BizException extends RuntimeException {

    private int code;

    public BizException() {
        super();
    }

    public BizException(String message) {
        super(message);
    }

    public BizException(int code, String message) {
        super(message);
        this.code = code;
    }

    public BizException(int code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }
}
